import {request} from '../../common/request.js';
 
export function getOrder(orderId){
	return request("/order/order/get/"+orderId, null, "GET");
}

export function getOrders(params){
	return request("/order/order/page", params, "GET");
}


export function addOrder(order){
	return request("/order/order/add", order, "POST");
}

export function deleteOrder(orderId){
	
	return request("/order/order/delete/"+orderId, cartItem, "DELETE");
}


export function payOrder(order){
	return request("/order/order/pay", order, "POST");
}